﻿using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using TR.AppService.AppService.rbac_Users;
using TR.Domain.Entity;

namespace TR.WebApi.Controllers.rbac_UserControllers
{
    [Route("api/[controller]/[action]")]
    [ApiController]
    public class rbac_UserController : ControllerBase
    {
        private readonly Irbac_UserAppService rbac_UserAppService;

        public rbac_UserController(Irbac_UserAppService rbac_UserAppService)
        {
            this.rbac_UserAppService = rbac_UserAppService;
        }

        [HttpGet]
        public async Task<rbac_User> UserSelect(string uname)
        {
            return await rbac_UserAppService.UserSelect(uname);
        }
    }
}
